package com.huarui.component.service;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.model.PagingInfo;

import com.huarui.user.dao.IUserDao;

public class UserTipsDataQuerier implements TipsDataQuerier {

	private IUserDao userDao;

	@Override
	public void queryTipsData(PagingInfo<String, Map<String, Object>> pageInfo) {
		List<Map<String, Object>> list = userDao.getUsersByPYCodePrefix(
				pageInfo.getCondition(), 0, pageInfo.getSummary().getLimit());
		pageInfo.setItems(list);
	}

	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}

}
